import { ICondition, IPaging } from '../../interfaces';

/**
 * 向params condition中增加分页参数--分页大小
 */
export default function paging_set_size(condition: ICondition, pagesize: number) {
	const paging = condition.paging || (condition.paging = {} as IPaging);
	paging.size = pagesize;
	return condition;
}
